<html>
<head>
<script src="tbaidu.js"></script>
<script>

var check_interval = 3000;

function init() 
{    
    var itv = new Number(localStorage['tbaidu_interval']);
    if (itv > 1000)
    {
        check_interval = itv;
    }
    check_status();
    window.setInterval(check_status, check_interval);
}

/*
chrome.browserAction.onClicked.addListener(function(windowId) {
try{
    chrome.tabs.getAllInWindow(null, tabSearch);
}catch(e){alert(e);}
});
*/

</script>
</head>
<body onload="init()">
</body>
</html>
